home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
PEEK.A
< prev
next >
Wrap
Text File
|
1985-01-16
|
366b
|
23 lines
; _peek.a - read byte from memory.
; (C) Copyright 1985 Gregory R. Mansfield - All Rights Reserved.
; G. R. Mansfield. 85/01/16.
; Ver 1.0-5116.
cseg
public _peek_
; BYTE _peek(offset, segment)
; BYTE *offset;
; SEGBASE segment;
_peek_: mov bx,sp
mov si,[bx+2] ; offset
mov ax,[bx+4] ; segment
push ds
mov ds,ax
lodsb
pop ds
ret